//
//  UILabel+Extension.m
//  BonweBuy
//
//  Created by liuxin on 2020/2/24.
//  Copyright © 2020 liuxin. All rights reserved.
//

#import "UILabel+Extension.h"

@implementation UILabel (Extension)

+(UILabel*)initWithTextColor:(UIColor*)textColor
{
    UILabel *label = [[UILabel alloc]init];
    label.textColor = textColor;
    return label;
}

+(UILabel*)initWithTextStr:(NSString*)textStr textColor:(UIColor*)textColor
{
    UILabel *label = [[UILabel alloc]init];
    label.text = textStr;
    label.textColor = textColor;
    return label;

}

+(UILabel*)initWithTextColor:(UIColor*)textColor fontStr:(UIFont*)fontStr
{
    UILabel *label = [[UILabel alloc]init];
    label.textColor = textColor;
    label.font = fontStr;
    return label;
}


+(UILabel*)initWithTextStr:(NSString*)textStr textColor:(UIColor*)textColor fontStr:(UIFont*)fontStr
{
    UILabel *label = [UILabel initWithTextStr:textStr textColor:textColor];
    label.font = fontStr;
    return label;
}


+(UILabel*)initWithTextStr:(NSString*)textStr textColor:(UIColor*)textColor  fontStr:(UIFont*)fontStr bgColor:(UIColor*)bgColor
{
    UILabel *label = [UILabel initWithTextStr:textStr textColor:textColor fontStr:fontStr];
    label.backgroundColor = bgColor;
    return label;
}

@end
